package cn.njxzc.Java2017;

public class InterfaceDemo {

}

interface A1 {
	void f();
}

interface A2 {
	int f(int i);
}

interface A3 {
	int f();
}

class C {
	public int f1() {
		return 4;
	}
}

class C1 implements A1, A2 {
	public void f() {
	}//overload

	public int f(int i) {
		return 5;
	}//overload
}

class C2 extends C implements A2 {
	public int f(int i) {
		return 5;
	}
}

class C3 extends C implements A3 {
	public int f() {
		return 5;
	}
}

class C4 extends C implements A1 {

	@Override
	public void f() {
		// TODO Auto-generated method stub

	}

}
